Optimal. Leaf size=61 \[ -\frac {A \sqrt {b x^2+c x^4}}{3 b x^4}-\frac {(3 b B-2 A c) \sqrt {b x^2+c x^4}}{3 b^2 x^2} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.11, antiderivative size = 61, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 3, integrand size = 26, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.115, Rules used = {2059, 806, 664}
\begin {gather*} -\frac {\sqrt {b x^2+c x^4} (3 b B-2 A c)}{3 b^2 x^2}-\frac {A \sqrt {b x^2+c x^4}}{3 b x^4} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 664
Rule 806
Rule 2059
Rubi steps
\begin {align*} \int \frac {A+B x^2}{x^3 \sqrt {b x^2+c x^4}} \, dx &=\frac {1}{2} \text {Subst}\left (\int \frac {A+B x}{x^2 \sqrt {b x+c x^2}} \, dx,x,x^2\right )\\ &=-\frac {A \sqrt {b x^2+c x^4}}{3 b x^4}+\frac {\left (-2 (-b B+A c)+\frac {1}{2} (-b B+2 A c)\right ) \text {Subst}\left (\int \frac {1}{x \sqrt {b x+c x^2}} \, dx,x,x^2\right )}{3 b}\\ &=-\frac {A \sqrt {b x^2+c x^4}}{3 b x^4}-\frac {(3 b B-2 A c) \sqrt {b x^2+c x^4}}{3 b^2 x^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.07, size = 43, normalized size = 0.70 \begin {gather*} -\frac {\sqrt {x^2 \left (b+c x^2\right )} \left (3 b B x^2+A \left (b-2 c x^2\right )\right )}{3 b^2 x^4} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.39, size = 47, normalized size = 0.77
method | result | size |
trager | \(-\frac {\left (-2 A c \,x^{2}+3 b B \,x^{2}+A b \right ) \sqrt {x^{4} c +b \,x^{2}}}{3 b^{2} x^{4}}\) | \(40\) |
gosper | \(-\frac {\left (c \,x^{2}+b \right ) \left (-2 A c \,x^{2}+3 b B \,x^{2}+A b \right )}{3 x^{2} b^{2} \sqrt {x^{4} c +b \,x^{2}}}\) | \(47\) |
default | \(-\frac {\left (c \,x^{2}+b \right ) \left (-2 A c \,x^{2}+3 b B \,x^{2}+A b \right )}{3 x^{2} b^{2} \sqrt {x^{4} c +b \,x^{2}}}\) | \(47\) |
risch | \(-\frac {\left (c \,x^{2}+b \right ) \left (-2 A c \,x^{2}+3 b B \,x^{2}+A b \right )}{3 x^{2} \sqrt {x^{2} \left (c \,x^{2}+b \right )}\, b^{2}}\) | \(47\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.28, size = 70, normalized size = 1.15 \begin {gather*} \frac {1}{3} \, A {\left (\frac {2 \, \sqrt {c x^{4} + b x^{2}} c}{b^{2} x^{2}} - \frac {\sqrt {c x^{4} + b x^{2}}}{b x^{4}}\right )} - \frac {\sqrt {c x^{4} + b x^{2}} B}{b x^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.91, size = 38, normalized size = 0.62 \begin {gather*} -\frac {\sqrt {c x^{4} + b x^{2}} {\left ({\left (3 \, B b - 2 \, A c\right )} x^{2} + A b\right )}}{3 \, b^{2} x^{4}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {A + B x^{2}}{x^{3} \sqrt {x^{2} \left (b + c x^{2}\right )}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 124 vs.
\(2 (53) = 106\).
time = 0.66, size = 124, normalized size = 2.03 \begin {gather*} \frac {2 \, {\left (3 \, {\left (\sqrt {c} x - \sqrt {c x^{2} + b}\right )}^{4} B \sqrt {c} - 6 \, {\left (\sqrt {c} x - \sqrt {c x^{2} + b}\right )}^{2} B b \sqrt {c} + 6 \, {\left (\sqrt {c} x - \sqrt {c x^{2} + b}\right )}^{2} A c^{\frac {3}{2}} + 3 \, B b^{2} \sqrt {c} - 2 \, A b c^{\frac {3}{2}}\right )}}{3 \, {\left ({\left (\sqrt {c} x - \sqrt {c x^{2} + b}\right )}^{2} - b\right )}^{3} \mathrm {sgn}\left (x\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.20, size = 39, normalized size = 0.64 \begin {gather*} -\frac {\sqrt {c\,x^4+b\,x^2}\,\left (A\,b-2\,A\,c\,x^2+3\,B\,b\,x^2\right )}{3\,b^2\,x^4} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________